﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Audio;

namespace Platformer.Player_Items
{
    class Useable_Item
    {
        int ChivalryBonus;
        int SanityBonus;
        int CourageBonus;

        Texture2D sprite;

        public int ID{ 
            get{ return id; }
        }
        int id;

        public const int Basic_Armor=0;
        public const int Basic_Helm = 1;
        public const int Basic_Lance = 2;
        public const int Helm_Mambrino = 3;
        public const int Merlin_Armor = 4;
        public const int Steel_Armor = 5;
        public const int Token_Dulcinea = 6;
        public const int Bandage = 7;
        public const int Lance_Montesino = 8;
        public const int Lance_Steel = 9;

        public Useable_Item(int id)
        {
            this.id = id;

            if (ID == Basic_Armor)
            {
                ChivalryBonus = 10;
                SanityBonus = 10;
                CourageBonus = 10;
            }
            else if (ID == Basic_Helm)
            {
                ChivalryBonus = 2;
                SanityBonus = 1;
                CourageBonus = 0;
            }
            else if (ID == Basic_Lance)
            {
                ChivalryBonus = 5;
                SanityBonus = 3;
                CourageBonus = 6;
            }
            else if (ID == Helm_Mambrino)
            {
                ChivalryBonus = 5;
                SanityBonus = 1;
                CourageBonus = 0;
            }
            else if (ID == Merlin_Armor)
            {
                ChivalryBonus = 20;
                SanityBonus = 5;
                CourageBonus = 5;
            }
            else if (ID == Steel_Armor)
            {
                ChivalryBonus = 5;
                SanityBonus = 15;
                CourageBonus = 10;
            }
            else if (ID == Token_Dulcinea)
            {
                ChivalryBonus = 8;
                SanityBonus = 0;
                CourageBonus = 7;
            }
            else if (ID == Bandage)
            {
                ChivalryBonus = 2;
                SanityBonus = 8;
                CourageBonus = 5;
            }
            else if (ID == Lance_Montesino)
            {
                ChivalryBonus = 15;
                SanityBonus = 0;
                CourageBonus = 5;
            }
            else if (ID == Lance_Steel)
            {
                ChivalryBonus = 0;
                SanityBonus = 15;
                CourageBonus = 5;
            }
            else
            {
                ChivalryBonus = 0;
                SanityBonus = 0;
                CourageBonus = 0;
            }
        }

        public int getChivalry()
        {
            return this.ChivalryBonus;
        }
        public int getSanity()
        {
            return this.SanityBonus;
        }
        public int getCourage()
        {
            return this.CourageBonus;
        }


    }
}
